home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.cs.arizona.edu
/
ftp.cs.arizona.edu.tar
/
ftp.cs.arizona.edu
/
icon
/
newsgrp
/
group95b.txt
/
000035_icon-group-sender _Tue May 30 16:31:09 1995.msg
< prev
next >
Wrap
Internet Message Format
|
1995-09-18
|
1KB
Received: by cheltenham.cs.arizona.edu; Mon, 5 Jun 1995 08:57:37 MST
To: icon-group-l@cs.arizona.edu
Date: Tue, 30 May 1995 16:31:09 GMT
From: krinke@infbspsk.cs.tu-bs.de (Jens Krinke)
Message-Id: <KRINKE.95May30183109@infbspsk.cs.tu-bs.de>
Organization: TU Braunschweig, FRG
Sender: icon-group-request@cs.arizona.edu
Reply-To: krinke@ips.cs.tu-bs.de (Jens Krinke)
Subject: problem with 'key'
Errors-To: icon-group-errors@cs.arizona.edu
Hi,
i have a problem with 'key': example:
record test(foo, bar)
procedure main()
a := table()
a[test(3,4)] := "a(3,4)"
a[test(1,2)] := "a(1,2)"
every write("entry: ", image(!a))
every write("key: ", image(!key(a)))
every k := !key(a) do
write("check: ", image(a[k]))
end
results in:
entry: "a(1,2)"
entry: "a(3,4)"
key: 1
key: 2
key: 3
key: 4
check: &null
check: &null
check: &null
check: &null
what am I doing wrong? Shouldn't the exact output be:
entry: "a(1,2)"
entry: "a(3,4)"
key: record_test...
key: record_test...
check: "a(1,2)"
check: "a(3,4)"
Thanks,
Jens
--
____________________________________________________________________
Jens Krinke (krinke@ips.cs.tu-bs.de, http://www.cs.tu-bs.de/~krinke)